#include "pro1.h"
#include <string.h>
#define size 101
#define type '*'
#include <unistd.h>

void process1()
{
  
  char bar[size];
  memset(bar,'\0',sizeof(bar));
  int i = 0;
  const char* ch1 = "/|-\\";
  for( i = 0;i <= 100;i++)
  {
    printf("[%-100s][%d%%][%c]\r",bar,i,ch1[i%4]);
    fflush(stdout);
    bar[i] = type;
    bar[i+1] = '>';
    usleep(100000);
  }
  printf("\n");
}
  

